package com.rk.kbk.dao;

import com.rk.kbk.model.User;
import com.rk.kbk.model.WorkLog;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

/**
 * @WorkLogDao
 * @骑手请假Dao
 * @version : Ver 1.0
 */
public interface WorkLogDao extends JpaRepository<WorkLog, Long>,JpaSpecificationExecutor {

    /**
     * 通过骑手ride获取WorkLog
     */
    WorkLog findByRide(User ride);

}
